package cn.edu.neusoft.wuguangsheng.market.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.market.bean.ShowCartBean;
import cn.edu.neusoft.wuguangsheng.market.iface.ShowCartIface;
import cn.edu.neusoft.wuguangsheng.market.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/16.
 */

public class ShowCartModel extends RetrofitBaseModel implements ShowCartIface<ShowCartBean> {
    private AllService allService;
    private Retrofit retrofit;
    public ShowCartModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void showCart(String uid, ListListener<ShowCartBean> listListener) {
        Call<List<ShowCartBean>> call= allService.showCart(uid);
        callenqueueList(call,listListener);

    }
}
